package com.ankicoo.practice.coding;

import org.apache.commons.lang3.StringUtils;
import tk.mybatis.mapper.util.StringUtil;

import java.util.ArrayList;
import java.util.List;

public class JoinAndStripTest {
    public static void main(String[] args) {
        List<String>  list = new ArrayList<>();
        list.add("a");
        list.add("b");
        list.add("c");
        System.out.println(String.join(",",list));
        System.out.println(list);
        System.out.println(StringUtils.strip(list.toString().replaceAll(" ",""),"[]"));
    }
}
